﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace Pr0ject0.Models
{
    public class QuestionModel
    {
        [Key]
        [Required]
        [Display(Name = "Question ID")]
        public int id { get; set; }

        public string question { get; set; }
        public int type { get; set; }
        public string answer { get; set; }
        public int title { get; set; }

        public AnswerModel ToAnswer()
        {
            AnswerModel _return = new AnswerModel();
            _return.question = this.question;
            _return.answer = this.answer;

            return _return;
        }
    }
}